/**
 * Created by toor on 17-10-10.
 */
import vx from 'vx';

export default function () {
	return new Promise(function (resolve, reject) {
		let $remote = vx.service('$remote');
		$remote.post('authUserPermission.do', {}, function (data) {
			if (data.status == 'okok') {
				resolve('okok');
			} else {
				reject('error');
			}
		}, function (error) {
			reject('error');
		});
	});
};